package com.ghovos.usermangerpgdemo.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;
import java.util.List;

/**
 * 部门表
 * @author liuli
 */
@Data
@TableName(value = "tb_department")
@ApiModel(description = "部门实体")
@EqualsAndHashCode(callSuper = true)
public class DepartmentEntity extends BaseEntity{
    @TableId(type = IdType.AUTO)
    private Long id;

    private String departmentName;

    @TableLogic
    private Integer isDeleted;

    @TableField(exist = false)
    private List<UserEntity> userEntityList;
}
